//------------------------------------------------------------------------------
// <copyright file="WindowMain.xaml.cs" company="Damian Antonowicz">
//       copyright © 2010 Damian Antonowicz
// </copyright>
// <author>Damian Antonowicz</author>
// <email>poczta@damianantonowicz.pl</email>
//------------------------------------------------------------------------------

using System;
using System.Windows;
using System.Windows.Controls;
using System.Windows.Input;
using System.Windows.Media;
using System.Windows.Media.Animation;
using DotBeer.Business.Entities;
using DotBeer.Data.Properties;
using DAnton.Utilities.Extensions;
using DotBeer.Business.Components;
using DotBeer.UI.WPFClient.ViewModels;
using System.Collections;
using System.Collections.Generic;
using System.Linq;
using System.Diagnostics;
using System.Threading;
using System.Windows.Threading;

namespace DotBeer.UI.WPFClient
{
    /// <summary>
    /// Main Window.
    /// </summary>
    public partial class WindowMain : Window
    {
        public WindowMain()
        {
            this.InitializeComponent();

            SynchronizationContext.SetSynchronizationContext(new DispatcherSynchronizationContext());
        }
        private void WinMain_Closing(object sender, System.ComponentModel.CancelEventArgs e)
        {
            Application.Current.Shutdown();
        }
    }
}
